<?php

if (!defined('BASEPATH')) exit('No direct script access allowed');


class AppConstants
{

    const PROJECT_ROLE_OWNER = 1;
    const PROJECT_ROLE_ADMIN = 2;
    const PROJECT_ROLE_INTERPRETER = 3;



    const LANG_PERMISSION_READ_ONLY = 1;
    const LANG_LANG_PERMISSION_READ_WRITE = 2;


    public static function get_project_roleName($role) {
        switch ($role) {
            case self::PROJECT_ROLE_OWNER:
                return "创建者";
                break;
            case self::PROJECT_ROLE_ADMIN:
                return "管理员";
                break;
            case self::PROJECT_ROLE_INTERPRETER:
                return "翻译员";
                break;
        }

    }
}